package hb.software.admain.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import hb.software.admain.domain.Role;
import hb.software.admain.service.RoleManager;
import web.spring.controller.*;

@Controller
@RequestMapping("/role")
public class RoleController extends GenericController<Role, Long, RoleManager> {

    RoleManager roleManager;

    @RequestMapping("/index")
    public String index() {
        return "role/index";
    }

    @Autowired
    public void setRoleManager(RoleManager roleManager) {
        this.roleManager = roleManager;
        this.roleManager = this.roleManager;
    }
}
